﻿@using WebSite.Views
@using WebSite.ViewModels
@using WebSite.ViewModels.Fields
@using ControleRepresentante.Logic.Models

@model User

<h2>Alterar Meus Dados</h2>

    @(Html.FormLayoutViewModel()
        .AddField(new LabelField("Usuário", "username", Model.Username))
        .AddField(new LabelField("E-mail", "email", Model.Email))
        .AddField(new LabelField("Senha", "password", "**********"))
        .Render(1))

<br />

@Html.Buttons().Add(Model, "MyInfo", ButtonType.Edit)